<section class='container-fluid'>
	<div class='row-fluid landing'>
		<div class='span4'><br/></div>
		<div class='span4 borBox'>
			<div class='navbar blue'>
				<div class='navbar-inner'>
					<div class='container-fluid'>
                                             <?php 
                                    $image_properties = array(
                                    'src' => 'img/login.png',
                                    'alt' => 'avatar',
                                    'class' => 'img-responsive imageborder ',
                                    'width' => '80',
                                    'height' => '80',
                                    'title' => '',
                                    'id' => '',                                    
                                    );                                    
                                    echo img($image_properties);?>
                                            <span class='wtext'>AUTENTICAÇÃO</span>
					</div>
				</div>	
			</div>
                    
                    <?php $atributos_formulario = array('id'=>'exm1','role'=>'form','onsubmit'=>'PreventMultipleSubmit()');
                            echo form_open ("principalcontroller/logar",$atributos_formulario);
                            if(validation_errors()|| isset($mensagem))
                            {   echo '<div class="alert alert-danger">
                                <button type="button" class="close " data-dismiss="alert">&times;</button>
                                <span>'.validation_errors().'</span>                                    
                                <span>'.$mensagem.'</span> 
                                    
                                </div>';
                            }?>
                            
                            
                    
			<div class='row-fluid well borBox whiter'>
				<div class='form-horizontal tCenter'>
                                    
					
                                         <?php echo form_input(array('name'=>'nome', 'id'=>'nome', 'type'=>'text','class'=>'span12 sharp','placeholder'=>'Digite seu login','required'=>'required'),  set_value('nome'));?>
                                         <br />
                                         <?php echo form_input(array('name'=>'senha', 'id'=>'senha', 'type'=>'password','class'=>'span12 sharp','placeholder'=>'Digite sua senha', ),  set_value('senha'));?>
                                         <br />                                       
                                          <button type="submit" id="btSubmit" class="btn btn-primary pull-right"> Enviar</button>
                                          <button type="reset" id="carregando" class="btn btn-slate-action pull-right x" disabled="disabled"> Aguarde ...</button>
                                          
                                       
                                         <?php 
                                    $image_properties = array(
                                    'src' => 'img/loading.gif',
                                    'alt' => 'avatar',
                                    'class' => 'img-responsive imageborder x',
                                    'width' => '104',
                                    'height' => '45',
                                    'title' => '',
                                    'id' => 'carregando',                                    
                                    );                                    
                                    echo img($image_properties);?>
                                        
                                        <div class="clearfix"></div>
                                    </div>
                        <?php echo form_close() ?>
				</div>	
			</div>
		</div> 

	</div>	
</section>	
    

 <script type="text/javascript">
        function PreventMultipleSubmit(){
            document.getElementById("btSubmit").disabled = true;       
            document.getElementById("btSubmit").style.display = "none";
            document.getElementById("carregando").style.display = "block";        
        }
  </script>
